package testcase.setting;

import basic.BasicCase;
import org.openqa.selenium.By;
import org.testng.Assert;
import org.testng.annotations.Test;

public class SeeBrand extends BasicCase {
    /*
        用于设置界面中查看已支持的品牌及型号
    * */
    @Test
    public void testName() {
        finder.waitforWebElement("com.oppo.ohome:id/iv_setting");
        //主界面点击“设置”按钮
        driver.findElement(By.id("com.oppo.ohome:id/iv_setting")).click();
        driver.findElementByName("已支持的品牌及型号").click();
        driver.findElement(By.name("美的")).click();
        driver.findElement(By.name("加湿器")).click();
        Assert.assertTrue(driver.findElement(By.name("美的空气加湿器")).isDisplayed());
    }
}
